package net.togogo.service;

import net.togogo.entity.TbOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "producer",path = "/order")
public interface OrderService {

    @PostMapping("/generate")
    String generate(@RequestBody TbOrder order);
}
